container: Fix typo that caused madness
authorBenjamin Otte <otte@redhat.com>
Thu, 21 Oct 2010 13:31:07 +0000 (15:31 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 21 Oct 2010 13:31:07 +0000 (15:31 +0200)
Interestingly, this typo has been causing madness since 2 months, but
Mitch complained only today.

gtk/gtkcontainer.c

index f80b6338934d6b2da7257f079254fc910825d441..0cfedfb793a1693c467bee7071aeed169ca1e404 100644 (file)
@@ -2310,7 +2310,7 @@ get_allocation_coords (GtkContainer  *container,
                       GtkWidget     *widget,
                       GdkRectangle  *allocation)
 {
-  gtk_widget_set_allocation (widget, allocation);
+  gtk_widget_get_allocation (widget, allocation);
 
   return gtk_widget_translate_coordinates (widget, GTK_WIDGET (container),
                                           0, 0, &allocation->x, &allocation->y);